#include<stdio.h>
int IsconsecutiveFactor (int n)
{
	int i,kt=0;
	for(i=2;i<n;i++)
	{
		if ((n%i==0)&&(n%(i+1)==0))
		{
			kt=1;
		}
	}
	if (kt) return 1;
	else return 0;
}
main ()
{
	printf("%d\n",IsconsecutiveFactor(12));
	printf("%d\n",IsconsecutiveFactor(7));
	printf("%d\n",IsconsecutiveFactor(8));
	printf("%d\n",IsconsecutiveFactor(24));
}